如何让 joe 编辑器从提交的第一行开始?

如何让 joe 编辑器从提交的第一行开始?

我升级了系统(到 openSUSE 15.3),我注意到现在当我使用 git 或 svn 提交某些内容时,当我要输入一些评论(我将 joe 设置为编辑器)时,插入符号不会放在第一行,而是在 git/svn 发表的第一条评论中。

我不喜欢这种行为,那么我怎样才能让 joe 将插入符号放在第一行呢?

更新git 示例。发出“git commit”后,编辑器启动,我可以在此处添加评论。这是实际结果(它只是提交文本的开头):


|# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.

这就是我所期望的(以前是这样工作的):

|
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.

“|”这里表示光标/插入符,它不是一个实际的字符。第一行是空行。

更新2sNV,再次显示刚刚开始。实际行为:


|--This line, and those below, will be ignored--

预期/之前的行为:

|
--This line, and those below, will be ignored--

更新3:我针对 svn 和 git 测试了 mcedit,在这两种情况下我都得到了预期的行为——即插入符/光标被放置在第一行。我就这样保留它(即 mcedit 作为编辑器),今天,在几次成功提交之后,mcedit 还在第二行中显示了带有光标/插入符号的文件(所以不正确)。

相关内容