Skip to content

Commit

Permalink
fix: broken nmap c when "set noinsertmode"
Browse files Browse the repository at this point in the history
  • Loading branch information
caisui committed Jul 5, 2013
1 parent 8ace4f4 commit a5e4ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/content/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ const Buffer = Module("buffer", {
if (Editor.windowIsEditable()) {
if (options["insertmode"])
modes.set(modes.INSERT);
else if (win.getSelection().toString() != "")
else if (Buffer.focusedWindow.getSelection().toString() != "")
modes.set(modes.VISUAL, modes.TEXTAREA);
else
modes.main = modes.TEXTAREA;
Expand Down

0 comments on commit a5e4ee2

Please sign in to comment.